import service from '@/utils/request'

// @Tags UserOnService
// @Summary 创建服务状态
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOnService true "创建服务状态"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /userOnService/createUserOnService [post]
export const createUserOnService = (data) => {
  return service({
    url: '/userOnService/createUserOnService',
    method: 'post',
    data
  })
}

// @Tags UserOnService
// @Summary 删除服务状态
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOnService true "删除服务状态"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userOnService/deleteUserOnService [delete]
export const deleteUserOnService = (params) => {
  return service({
    url: '/userOnService/deleteUserOnService',
    method: 'delete',
    params
  })
}

// @Tags UserOnService
// @Summary 批量删除服务状态
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除服务状态"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /userOnService/deleteUserOnService [delete]
export const deleteUserOnServiceByIds = (params) => {
  return service({
    url: '/userOnService/deleteUserOnServiceByIds',
    method: 'delete',
    params
  })
}

// @Tags UserOnService
// @Summary 更新服务状态
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.UserOnService true "更新服务状态"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /userOnService/updateUserOnService [put]
export const updateUserOnService = (data) => {
  return service({
    url: '/userOnService/updateUserOnService',
    method: 'put',
    data
  })
}

// @Tags UserOnService
// @Summary 用id查询服务状态
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.UserOnService true "用id查询服务状态"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /userOnService/findUserOnService [get]
export const findUserOnService = (params) => {
  return service({
    url: '/userOnService/findUserOnService',
    method: 'get',
    params
  })
}

// @Tags UserOnService
// @Summary 分页获取服务状态列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取服务状态列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /userOnService/getUserOnServiceList [get]
export const getUserOnServiceList = (params) => {
  return service({
    url: '/userOnService/getUserOnServiceList',
    method: 'get',
    params
  })
}
